package com.jiantong.work.service;

import com.jiantong.work.model.PollutionControl;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 *
 */
public interface PollutionControlWriteService {
    /**
     * 创建治污中心新单据
     * @param pollutionControl 单据对象
     * @return 主键 id
     */
    Response<Map<String , Object>> create(PollutionControl pollutionControl , Integer toStatus);

    /**
     * 更新治污中心的单据
     * @param pollutionControl 单据对象
     * @return true or false
     */
    Response<Map<String , Object>> update(PollutionControl pollutionControl,Integer toStatus);

    Boolean update (PollutionControl pollutionControl);

}
